package com.bcmusic.music.feign;

import com.bcmusic.music.pojo.Music;
import entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 其它模块调用音乐模块通过feign模块调用
 * 卧槽我在想pich
 */
@FeignClient("music")
@RequestMapping("/music")
public interface MusicFeign {
    @PostMapping ("publishIdList")
    public Result<List<Long>> findPublishIdList(@RequestParam("musicNumList") List<String>musicNumList);

    @PostMapping("findMusicByNum")
    public Result<Music> findMusicByNum(@RequestParam("musicNum")String musicNum);

    @GetMapping("findAllMusic")
    public Result<List<Music>> findAllMusic();

    @GetMapping("/findById")
    public Result<Music> findById(@RequestParam Integer id);

    @GetMapping("/getMusicByIdList")
    public Result<List<Music>> getMusicByIdList(@RequestParam("idList") List<Integer>idList);


}
